import {FormBase, ControlType} from './form-base';

export class FormCascader extends FormBase<string[]> {

    controlType: ControlType = 'cascader';
    options: any[] = [];
    private _value: any[] = [];

    get value() {
        return this._value;
    }

    set value(value: any) {
        this._value = value;
    }

    constructor(options: {} = {}) {
        super(options);
        this.options = options['options'] || [];
        this.value = options['value'] || [];
    }

}
